package com.vehicle.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 校园车辆管理系统
 * @since 2023-04-17
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "用户id")
        @TableId(value = "user_id", type = IdType.AUTO)
      private Integer userId;

      @ApiModelProperty(value = "用户真实名字")
      private String userName;

      @ApiModelProperty(value = "用户联系方式")
      private String tel;

      @ApiModelProperty(value = "用户登录密码")
      private String password;

      @ApiModelProperty(value = "用户注册时间")
      @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      @ApiModelProperty(value = "用户信息修改时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;

      @ApiModelProperty(value = "用户是否已删除（0：未删除，1：已删除）")
      @TableLogic
    private Integer deleted;

      @ApiModelProperty(value = "紧急联系人信息id")
      private Integer contactId;

      @ApiModelProperty(value = "所在学院详细id")
      private Integer cdId;

      @ApiModelProperty(value = "普通用户token")
      private String token;

      @ApiModelProperty(value = "用户代码")
      private String userCode;

      private String picture;


}
